<template>
    <div class="mySelf">
        <div class="mySelf-top">
            <van-icon name="arrow-left" @click="$router.go(-1)" />
            <span>个人信息</span>
        </div>
        <div class="mySelf-container" v-for="item in list" :key="item">
            <span>{{ item }}</span>
            <van-icon class="icon" name="arrow" />
        </div>
        <img src="https://img0.baidu.com/it/u=3321830095,2858211970&fm=253&fmt=auto&app=138&f=JPEG?w=438&h=500"
            alt="">
        <van-button class="van-button" type="primary">确定</van-button>
    </div>
</template>

<script>
export default {
    name: 'mySelf',
    data() {
        return {
            list: ['头像', '昵称', '性别', '生日']
        }
    }
}
</script>

<style lang="less" scoped>
.mySelf {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;

    .mySelf-top {
        width: 100%;
        height: 60px;
        background: rgb(7, 193, 96);
        color: #fff;
        padding-left: 10px;
        display: flex;
        align-items: center;

        span {
            margin-left: 50%;
            transform: translateX(-50px);
        }
    }

    .mySelf-container {
        width: 100%;
        height: 50px;
        border-bottom: 1px solid #ccc;
        display: flex;
        align-items: center;
        justify-content: space-between;

        .icon,
        span {
            padding: 0 10px;
        }
    }

    img {
        width: 30px;
        height: 30px;
        border-radius: 50%;
        position: fixed;
        top: 68px;
        right: 50px;
    }

    .van-button {
        width: 250px;
        margin-top: 50px;
    }
}
</style>